//
//  FDOrderDetailWebSocketTool.h
//  FD
//
//  Created by xiaofang wang on 2019/1/5.
//  Copyright © 2019年 ZhiYuan Network. All rights reserved.
//  订单详情socket工具类。用户下载骑手坐标
//  下载骑手坐标，是订单状态 status=3，配送中，才建立连接， 其它状况不需要建立连接

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

//longitude经度
typedef void(^RiderPositionBlock)(NSNumber *longitude, NSNumber *latidute);

@interface FDOrderDetailWebSocketTool : NSObject

/**回调骑手坐标block*/
@property (nonatomic, copy) RiderPositionBlock riderPositionBlock;

//根据orderId初始化socket 并建立连接.
- (void)setupWebSocketWithOrderId:(NSString *)orderId;

//断开socket
- (void)closewebSocket;


@end

NS_ASSUME_NONNULL_END

//*回调骑手坐标:block作为方法参数
//- (void)callBackRiderPositonBlock:(void(^)(NSDictionary *dic))block;

